<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>GSoC2011SfM: D:/Travail/These/Determination caracteristiques camera/GSoC/SfM/src/Boost_Matching.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">GSoC2011SfM
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">Google Summer of Code 2011: Structure from motion</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">D:/Travail/These/Determination caracteristiques camera/GSoC/SfM/src/Boost_Matching.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef _GSOC_SFM_BOOST_THREAD_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define _GSOC_SFM_BOOST_THREAD_H 1</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &quot;macro.h&quot;</span> <span class="comment">//SFM_EXPORTS</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;opencv2/core/core.hpp&quot;</span>
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;SequenceAnalyzer.h&quot;</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="keyword">namespace </span>OpencvSfM{
<a name="l00012"></a>00012 
<a name="l00017"></a><a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html">00017</a>   <span class="keyword">struct </span><a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html" title="This struct is used by boost::thread object to compute match. I used some semaphore to ensure the mat...">MatchingThread</a>{
<a name="l00018"></a><a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a584ed4ac0f86b315adb45e3ca91900d1">00018</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a584ed4ac0f86b315adb45e3ca91900d1" title="Index of source image. This image will be matched against every other.">i</a>;
<a name="l00019"></a><a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#ace2327ef4f8035da205908bb8ae3cc09">00019</a>     std::vector&lt; cv::Ptr&lt; PointsToTrack &gt; &gt;::iterator <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#ace2327ef4f8035da205908bb8ae3cc09" title="iterator of every Points for track (points of other images to match)">matches_it</a>;
<a name="l00020"></a><a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a9f5044ef6e695d5b8e5aeefda5ce7874">00020</a>     cv::Ptr&lt;SequenceAnalyzer&gt; <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a9f5044ef6e695d5b8e5aeefda5ce7874" title="This object contains every sequence related info (images, points, tracks...)">seq_analyser</a>;
<a name="l00021"></a>00021 
<a name="l00022"></a><a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#af4032a6ff57159ff1854bcb3039c2509">00022</a>     <span class="keyword">static</span> std::vector&lt; cv::Ptr&lt; PointsToTrack &gt; &gt;::iterator <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#af4032a6ff57159ff1854bcb3039c2509" title="End of list images of points. It&#39;s the same for every thread, so set once for every thread before run...">end_matches_it</a>;
<a name="l00023"></a><a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a78cdb5def6e18e5d8dbbbe5915a9b8fe">00023</a>     <span class="keyword">static</span> std::vector&lt; cv::Mat &gt; <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a78cdb5def6e18e5d8dbbbe5915a9b8fe" title="List of mask to hide some points in the matching computation.">masks</a>;
<a name="l00024"></a><a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#ada0799eb3adfb43cc720d75b85a35b98">00024</a>     <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#ada0799eb3adfb43cc720d75b85a35b98" title="Minimum matches between two images to accept the matches.">mininum_points_matches</a>;
<a name="l00025"></a><a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a560bf2489beba3822c9549f3514c6966">00025</a>     <span class="keyword">static</span> <a class="code" href="class_opencv_sf_m_1_1_points_matcher.html" title="A class used for matching descriptors that can be described as vectors in a finite-dimensional space...">PointsMatcher</a>* <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a560bf2489beba3822c9549f3514c6966" title="The algorithm to use for matching.">match_algorithm</a>;
<a name="l00026"></a>00026     <span class="comment">//semaphore to synchronize threads:</span>
<a name="l00027"></a>00027     <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a17745505b16030a678d464969db7b958" title="Used to start as many thread as processors.">CREATE_STATIC_MUTEX</a>( thread_concurr );
<a name="l00028"></a>00028     <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a17745505b16030a678d464969db7b958" title="Used to start as many thread as processors.">CREATE_STATIC_MUTEX</a>( thread_unicity );
<a name="l00029"></a>00029 
<a name="l00036"></a>00036     <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a3509545a5cfbd9994713966116941fcb">MatchingThread</a>(cv::Ptr&lt;SequenceAnalyzer&gt; <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a9f5044ef6e695d5b8e5aeefda5ce7874" title="This object contains every sequence related info (images, points, tracks...)">seq_analyser</a>,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a584ed4ac0f86b315adb45e3ca91900d1" title="Index of source image. This image will be matched against every other.">i</a>,
<a name="l00037"></a>00037       std::vector&lt; cv::Ptr&lt; PointsToTrack &gt; &gt;::iterator <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#ace2327ef4f8035da205908bb8ae3cc09" title="iterator of every Points for track (points of other images to match)">matches_it</a>);
<a name="l00038"></a>00038 
<a name="l00042"></a>00042     <span class="keywordtype">void</span> <a class="code" href="struct_opencv_sf_m_1_1_matching_thread.html#a63e8b718ecb56468cca7dd66e19de4a4">operator()</a>();
<a name="l00043"></a>00043   };
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 }
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sun Aug 21 2011 16:45:52 for GSoC2011SfM by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
